package com.example.starttrekking;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

public class InicialFragment extends Fragment {
	@Override
	public View onCreateView(LayoutInflater inflater,
			ViewGroup container, Bundle savedInstanceState) {

		//Inflate the layout for this fragment
		View view = inflater.inflate(R.layout.fragment_start_trekking, container, false);
		
		TextView user = (TextView)view.findViewById(R.id.facebookLogin);
		if (((StartTrekking)getActivity()).logged_user != null)
			user.setText("Bem vindo, Trekker " + ((StartTrekking)getActivity()).logged_user.getName() + "!");
		else
			user.setText("Bem vindooooo, Trekker!");
		return view;
		
	}

}
